import SvgIcon from './SvgIcon/index.vue'
import Pagination from './Pagination/index.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const allFlobalComponent = { SvgIcon, Pagination }
// 对外暴漏自定义插件
export default {
  install(app: any) {
    // app.component('SvgIcon')
    Object.keys(allFlobalComponent).forEach((key: string) => {
      console.log(key)
      app.component(key, allFlobalComponent[key])
    })

    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
